﻿
using Microsoft.Extensions.Logging;
using Quartz;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XXX.api.Controllers;
using XXX.api.Log;
using XXX.Bo;
using XXX.Models;
using XXX.Models.XXXEntities;

namespace XXX.api.Quarzs
{
    public class UserInfoSyncjob2 : IJob
    {
        private readonly ILogger<UserInfoSyncjob2> _logger;
        //private readonly ILoggerHelper _logger;

        //  private readonly ICache _cache;
        public UserInfoSyncjob2(ILogger<UserInfoSyncjob2> logger)
        {
            //_cache = cache;
            _logger = logger;
        }
        public Task Execute(IJobExecutionContext context)
        {
            return Task.Run(() =>
                        {
                            //.....
                            // Console.WriteLine($"{DateTime.Now.ToString()}：开始执行同步第三方数据");
                            _logger.LogInformation("开始执行基础档案定时同步");
                           
                        });
        }
    }
}
